<extend name="Public/base"/>
<block name="nav"> <include file="nav"/> </block>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U("")}">
      <div class="tab-content">
    <div class="space-4"></div>
   

           <div class="space-4"></div>






          <div class="space-4"></div>
          <div class="form-group">
            <label class="col-sm-2 control-label "> 规则名 </label>
            <div class="col-sm-10">
              <input type="text"  value="{$data.name}"  name="name" class="col-xs-10 col-sm-5" />
               </div>
          </div>



          <div class="space-4"></div>
          <div class="form-group">
              <label class="col-sm-2 control-label "> 关键字</label>
              <div class="col-sm-10">

                  <input type="text"  value="<php>echo substr($data[key],1,-1)</php>" onKeyUp="ReplaceDot(this)"  name="key" class="col-xs-10 col-sm-5" />

                  <span class="info">多个关键字用空格隔开</span>

              </div>
          </div>




          <div class="form-group">
              <label class="col-sm-2 control-label ">图片 </label>
              <div class="col-sm-10">

                  <att model="config"  action="img"  field="thumb" value="data[thumb]"/>


              </div>
          </div>





          
      </div>
    <input type="hidden"  name="type"   value="{$data.type}"  />
    <input type="hidden"  name="id"   value="{$data.id}"  />



    <div class="form-actions">
        <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  更新</button>
        <a class="btn btn-return" href="__URL__" >返 回</a>
      </div>
    </form>
</block>
<block name="plugin-script"> 
  <script src="__JS__/content.js"></script>
    <script src="__JS__/ueditor/ueditor.config.js"></script>
    <script src="__JS__/ueditor/ueditor.all.min.js"></script>

</block>